package com.hllxd.hism.star.basic.service.dao.mapper.mis;

import com.hllxd.hism.star.basic.service.model.alarm.AlarmList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wuguangxi
 * @description
 * @date 2023/11/14 17:26
 **/
@Mapper
public interface AlarmListMapper {

    /**
     * 根据告警id查询
     * @param alarmId
     * @return
     */
    List<AlarmList> findByAlarmId(@Param("alarmId") String alarmId);

    /**
     * 新增数据
     * @param alarmList
     */
    void insert(@Param("data") AlarmList alarmList);

    /**
     * 根据告警id，更新状态
     * @param status
     * @param time
     * @param alarmId
     */
    void updateStatusByAlarmId(@Param("status") String status, @Param("time") Long time, @Param("alarmId") String alarmId);
}
